*{
    /*清除默认样式*/
    margin: 0;
    padding: 0;
}

#carousel{
    width: 200px;
    height: 200px;
    position: relative;
}

#carousel li{
    width: 200px;
    line-height: 200px;
    /* border-radius: 50%; */
    position: absolute;
    text-align: center;
    justify-content: center;
    text-shadow: 0 0 5px #000;
    font-size: 35px;
    color: #fff;
    opacity: 0;
    transition: opacity 1s;

}

#carousel li:nth-child(1){
    background-color: orange; 
    
}

#carousel li:nth-child(2){
    background-color: red;
}

#carousel li:nth-child(3){
    background-color: grey;
}

#carousel li:nth-child(4){
    background-color: blue;
}

#carousel li:nth-child(5){
    background-color: purple;
}











#carousel li.active{
    opacity: 1;
}

button{
    width: 30px;
    height: 30px;
    border: 5px;
    position: relative;
    
}










